package com.xcc.cloud.stream.controller;

import com.xcc.cloud.stream.provider.IMessageProvider;
import com.xcc.cloud.stream.provider.MessageProviderImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SendMessageController {

    @Autowired
    IMessageProvider messageProvider;

    @GetMapping(value = "/sendMessage")
    public String sendMessage(){
        return messageProvider.send();
    }

    @GetMapping(value = "/sendMessage1")
    public String sendMessage1(){
        return messageProvider.send1();
    }

    @GetMapping(value = "/sendMessage2")
    public String sendMessage2(){
        return messageProvider.send2();
    }


}
